package com.pengheng.mqtt.gateway;

import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.handler.annotation.Header;

@MessagingGateway(defaultRequestChannel = "uavMqttInboundChannel")
public interface UAVMqttGateway {

    void sendToMqtt(String data, @Header(MqttHeaders.RECEIVED_TOPIC) String topic);
}
